package com.easygem.common.vo.business;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * @author 文晓平
 * @version 1.0
 * @Description 系统通知
 * @date 2024/12/21 0:09
 */
@Data
public class SysNoticeVO {
    private Integer noticeId;

    @NotBlank(message = "标题不能为空")
    private String title;

    @NotBlank(message = "内容不能为空")
    private String noticeContent;

    @NotNull(message = "等级不能为空")
    private Integer level;

    private Integer isRead;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;

    private Integer isPublish;

    private Long userId;
    
    private String remark;

    private String userName;

    private Integer isScope;//发布范围，0:内部  1:全部
}
